.ai-page {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.ai-navbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-center {
  flex: 1;
  text-align: center;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.back-button {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-button:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.ai-navbar h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #333;
  font-weight: 600;
}

.user-info {
  color: #666;
  font-size: 14px;
}

/* 主要内容区域 */
.ai-main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.ai-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-header h2 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 600;
}

.page-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
  color: #333;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.ai-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.start-chat-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.start-chat-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.start-chat-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* AI聊天对话框覆盖层 */
.ai-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-navbar {
    padding: 0 15px;
  }
  
  .ai-navbar h1 {
    font-size: 1.25rem;
  }
  
  .ai-main-content {
    padding: 15px;
  }
  
  .ai-container {
    padding: 20px;
  }
  
  .page-header h2 {
    font-size: 1.5rem;
  }
  
  .ai-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .ai-chat-overlay {
    padding: 10px;
  }
}
